//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class StartProduction extends LogicCommand {
    private final int cmdId = 10;
    private final int productionId;
    private final int productionGoodId;

    public StartProduction(int tt, int productionId, int productionGoodId) {
        super(tt);
        this.productionId = productionId;
        this.productionGoodId = productionGoodId;
    }

    public int getCommandId() {
        return 10;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(10);
        stream.writeInt(this.productionGoodId);
        stream.writeInt(this.productionId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
